<?php

namespace Home\Controller;

use Common\Top;
use Common\Utils;
use Think\Controller;

class CeshiController extends CommonController
{


    public function index()
    {
//        dump(session());exit;
//        //$data = M('flight_transaction')->alias('f')->field('f.*,o.agency_name')->join('top_order_flight o ON f.object_id = o.id')->where($where)->select();
//        $account_topup = M('account_topup');
//        $map['a.merchant_number']= 'wx5bb8885a5fcf035f1486611349';
//     $user = $account_topup->alias('a')->Field('a.entity_id,a.operator_id,e.domain')->join('top_agency e ON a.entity_id = e.id')->where($map)->find();
//     M('agency')->where('id='.$user['entity_id'])->setInc('account_balance',100);
//     M('operator')->where('id='.$user['operator_id'])->setInc('account_credit_balance',100);
//     $user_url = 'http://'.$user['domain'].'/index.php/Home/Finance/index.html';
//     Header("Location: $user_url");
//     dump($user_url);exit;
        $this->display();
    }


    public function contact()
    {
        $userList = $this->userInfo;
        $contact = $userList['mobile'];
        $this->ajaxReturn($contact);
    }

}
